export default function getUrlParams(key: string) {
  const url = window.location.href;

  // 通过URLSearchParams获取URL中的参数
  const urlParams = new URLSearchParams(url.split("?")[1]);

  return urlParams.get(key);
}
